package com.hc.springbootes.service;

import com.hc.springbootes.entity.Emp;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface EmpRepository extends ElasticsearchRepository<Emp,Integer> {
    List<Emp> findBySalaryBetween(Double from, Double to);
}
